// Item class : Define object methods and properties

package appModel;

import javax.swing.JPanel;

public class Item extends JPanel {

  private static final int DELTA = 10;
  protected boolean selected = false;

  public Item() {
    super();
  }

  public boolean isSelected(){
    return selected;
  }

  public void setSelected(boolean aSelected){
    selected = aSelected;
    this.repaint();
  }

  public void increase() {
    this.setSize(this.getWidth() + DELTA, this.getHeight() + DELTA);
    this.repaint();
  }

  public void decrease() {
    this.setSize(this.getWidth() - DELTA, this.getHeight() - DELTA);
    this.repaint();
  }

}
